From 068634aee34bf163699237e6eeb33477fe7ed4d4 Mon Sep 17 00:00:00 2001 From: robertlipe Date: Fri, 12 Jul 2013 17:26:25 +0000 Subject: [PATCH] Update mapsend to explictly use toLatin1() instead of toAscii. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@4422 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/mapsend.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/gpsbabel/mapsend.cc b/gpsbabel/mapsend.cc index 540b040c9..8c40711de 100644 --- a/gpsbabel/mapsend.cc +++ b/gpsbabel/mapsend.cc @@ -322,9 +322,9 @@ mapsend_waypt_pr(const waypoint* waypointp) if (!waypointp->icon_descr.isNull()) { iconp = mag_find_token_from_descr(waypointp->icon_descr); if (1 == iconp.size()) { - c = iconp[0].toAscii() - 'a'; + c = iconp[0].toLatin1() - 'a'; } else { - c = iconp[1].toAscii() - 'a' + 26; + c = iconp[1].toLatin1() - 'a' + 26; } } else { c = 0; @@ -332,9 +332,9 @@ mapsend_waypt_pr(const waypoint* waypointp) if (get_cache_icon(waypointp)) { iconp = mag_find_token_from_descr(get_cache_icon(waypointp)); if (1 == iconp.size()) { - c = iconp[0].toAscii() - 'a'; + c = iconp[0].toLatin1() - 'a'; } else { - c = iconp[1].toAscii() - 'a' + 26; + c = iconp[1].toLatin1() - 'a' + 26; } } @@ -400,9 +400,9 @@ mapsend_route_disp(const waypoint* waypointp) if (!waypointp->icon_descr.isNull()) { iconp = mag_find_token_from_descr(waypointp->icon_descr); if (1 == iconp.size()) { - c = iconp[0].toAscii() - 'a'; + c = iconp[0].toLatin1() - 'a'; } else { - c = iconp[1].toAscii() - 'a' + 26; + c = iconp[1].toLatin1() - 'a' + 26; } } else { c = 0; -- 2.30.2